﻿<Window x:Class="dsVisual.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:dslib="clr-namespace:DsLib;assembly=DsLib"
        Title="MainWindow" Height="518" Width="679">
    <Window.Resources>
        <ObjectDataProvider MethodName="GetValues"
                        ObjectType="{x:Type sys:Enum}"
                        x:Key="AlignmentValues">
            <ObjectDataProvider.MethodParameters>
                <x:Type TypeName="dslib:TreeTraversalType" />
            </ObjectDataProvider.MethodParameters>
        </ObjectDataProvider>
    </Window.Resources>
    
    <Grid Width="670">
        
        <TextBox Height="23" HorizontalAlignment="Left" Margin="0,41,0,0" Name="textBox1" VerticalAlignment="Top" Width="74" DataContext="{Binding}" Text="Add Value" TextAlignment="Center" MouseEnter="textBox1_MouseEnter" MouseLeave="textBox1_MouseLeave" GotKeyboardFocus="textBox1_GotKeyboardFocus" LostKeyboardFocus="textBox1_LostKeyboardFocus" />
        <Button Content="Add" Height="23" HorizontalAlignment="Left" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" Margin="-1,0,0,0" />
        <Button Content="Delete" Height="23" HorizontalAlignment="Right" Margin="0,0,510,0" Name="button2" VerticalAlignment="Top" Width="75" Click="button2_Click" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="85,41,0,0" Name="textBox2" VerticalAlignment="Top" Width="80" TextAlignment="Center" Text="Delete Value" GotKeyboardFocus="textBox2_GotKeyboardFocus" LostKeyboardFocus="textBox2_LostKeyboardFocus" MouseEnter="textBox2_MouseEnter" MouseLeave="textBox2_MouseLeave" />
        <Button Content="Search" Height="23" HorizontalAlignment="Left" Margin="175,0,0,0" Name="button3" VerticalAlignment="Top" Width="75" Click="button3_Click" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="175,41,0,0" Name="textBox3" VerticalAlignment="Top" Width="75" Text="Search Value" TextAlignment="Center" MouseLeave="textBox3_MouseLeave" MouseEnter="textBox3_MouseEnter" LostKeyboardFocus="textBox3_LostKeyboardFocus" GotKeyboardFocus="textBox3_GotKeyboardFocus" />
        <RichTextBox Height="436" HorizontalAlignment="Left" Margin="464,31,0,0" Name="richTextBox1" VerticalAlignment="Top" Width="184" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" />
        <Label Content="Output" Height="30" HorizontalAlignment="Left" Margin="465,-1,0,0" Name="label1" VerticalAlignment="Top" Width="56" />
        <Button Content="Clear" Height="23" HorizontalAlignment="Left" Margin="554,0,0,0" Name="button4" VerticalAlignment="Top" Width="75" Click="button4_Click" />
        <Canvas Height="366" HorizontalAlignment="Left" Margin="12,101,0,0" Name="canvas1" VerticalAlignment="Top" Width="430" />
        <Button Content="New BST" Height="23" HorizontalAlignment="Left" Margin="367,0,0,0" Name="button5" VerticalAlignment="Top" Width="75" Click="button5_Click" />
        <Button Content="Traverse" Height="23" HorizontalAlignment="Left" Margin="265,0,0,0" Name="button6" VerticalAlignment="Top" Width="75" Click="button6_Click" />
        <Label Content="Count: 0" Height="28" HorizontalAlignment="Left" Margin="367,38,0,0" Name="label2" VerticalAlignment="Top" Width="75" />
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="265,41,0,0" Name="comboBox1" VerticalAlignment="Top" Width="75" 
                  AllowDrop="True" ItemsSource="{Binding Source={StaticResource AlignmentValues}}" SelectedIndex="0"/>
    </Grid>
    <!--<Window.Resources>
        <Converter:MyEnumToStringConverter x:Key="MyEnumConverter"/>
    </Window.Resources>-->
</Window>
